const Sequelize = require('sequelize');
// 第一个参数是数据库的名字，第二个参数是数据库账号、密码；
const sequelize = new Sequelize('personal_data', 'root', 'root123', {
    host: '127.0.0.1',
    dialect: 'mysql',
    operatorsAliases: false,
    pool: {
        max: 5,
        min: 0,
        acquire: 30000,
        idle: 10000
    },
    timezone: '+8:00'
});

module.exports = { sequelize };